package tankgame02;

import javax.swing.*;

/**
 * @author DCSGO
 * @version 1.0
 */

@SuppressWarnings({"all"})
public class TankGame02 extends JFrame {
    private MyPanel mp;

    public static void main(String[] args) {
        TankGame02 tankGame01 = new TankGame02();

    }

    public TankGame02() {
        mp = new MyPanel();
        this.add(mp);
        this.setSize(1000 + 16, 750 + 39);
        this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.addKeyListener(mp);
        new Thread(mp).start();
        for (int i = 0; i < mp.EnemyTanks.size(); i++) {
            new Thread(mp.EnemyTanks.get(i)).start();
        }
    }
}
